
    {foreach name="activity" item="vo" key="vv"}

        <div class="card demo-card-header-pic">
            <a href="{:U('ActivityDetail/index', array('activity_id'=>$vo['id'],'city'=>$city))}">
                <div valign="bottom" class="card-header color-white no-border no-padding">
                    <img class='card-cover' src="{$vo['activity_img']}" alt="">
                </div>
                <div class="card-content">
                    <div class="card-content-inner">
                        <p class="hot_list_title">{$vo['activity_name']}</p>
                        <p class="color-gray">发表于 {$vo['add_time']|date='Y/m/d',###}</p>
                        <p class="color-gray"><span>{$vo['area']}</span><span>{$vo['signup_number']}人已报名</span><span>￥{$vo['price']}</span></p>
                    </div>
                </div>
            </a>
        </div>
    
    {/foreach}
 
    <div class="infinite-scroll-preloader" style="display:none;">
        <div class="preloader"></div>
    </div>
    {if condition="$vo['activity_name'] neq ''"}
    <p onclick="ajax_sourch_submit();" id="load_more"><span class="icon icon-down"></span> 点击加载更多...</p>
    {else/}
    <p id="load_more"> 没有{$city}的活动了！</p>
    {/if}  

<script>
var index_url = "{:U('ActivityDetail/ajax_activity_list')}";
var  page = 1;
 /*** ajax 提交表单 查询订单列表结果*/  
 function ajax_sourch_submit()
 {	 	 	 
	 	$(".infinite-scroll-preloader").show();
                page += 1;
		$.ajax({
			type : "GET",
			//url:"/index.php?m=Mobile&c=User&a=collect_list&is_ajax=1&p="+page,//+tab,			
			url:"ajax_activity_list/is_ajax/1/p/"+page+'/city/{$city}',//+tab,
//			data : $('#filter_form').serialize(),// 你的formid 搜索表单 序列化提交
			success: function(data)
			{
				$(".infinite-scroll-preloader").hide();
				if($.trim(data) == ''){
					$('#load_more').hide();
				}else{
				    $(".list_activity_data").append(data);
				}
			}
		}); 
 } 
</script>